<template>
  <div class="pd-10">

    <div class="left-box">
      <span>请购分单条件</span>
      <a-divider />
      <a-form class="w30" :model="supplyFormState" layout="inline" :label-col="labelCol">
        <a-form-item>
          <a-checkbox v-model:checked="supplyFormState.lp">料品</a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="supplyFormState.fdrqlx">分单日期类型</a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="supplyFormState.hzzz">货主组织</a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="supplyFormState.ywy">业务员</a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="supplyFormState.xqfl">需求分类</a-checkbox>
        </a-form-item>
        <a-form-item label="1" style="opacity: 0;">
          <a-checkbox></a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="supplyFormState.ccdd">存储地点</a-checkbox>
        </a-form-item>
        <a-form-item label="1" style="opacity: 0;">
          <a-checkbox></a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="supplyFormState.xm">项目</a-checkbox>
        </a-form-item>
        <a-form-item label="1" style="opacity: 0;">
          <a-checkbox></a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="supplyFormState.cgbm">采购部门</a-checkbox>
        </a-form-item>
      </a-form>
    </div>
    <div class="right-box">
      <span>采购合行条件</span>
      <a-divider />
      <a-form class="w30" :model="demandFormState" layout="inline" :label-col="labelCol">
        <a-form-item>
          <a-checkbox v-model:checked="demandFormState.lp">料品</a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="demandFormState.fdrqlx">分单日期类型</a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="demandFormState.hzzz">货主组织</a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="demandFormState.ywy">业务员</a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="demandFormState.xqfl">需求分类</a-checkbox>
        </a-form-item>
        <a-form-item label="1" style="opacity: 0;">
          <a-checkbox></a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="demandFormState.ccdd">存储地点</a-checkbox>
        </a-form-item>
        <a-form-item label="1" style="opacity: 0;">
          <a-checkbox></a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="demandFormState.xm">项目</a-checkbox>
        </a-form-item>
        <a-form-item label="1" style="opacity: 0;">
          <a-checkbox></a-checkbox>
        </a-form-item>
        <a-form-item>
          <a-checkbox v-model:checked="demandFormState.cgbm">采购部门</a-checkbox>
        </a-form-item>
      </a-form>
    </div>
  </div>
</template>

<script lang="ts" name="purchaseOrderConditions" setup>
  import {
    reactive,
    toRaw
  } from 'vue';
  import type {
    UnwrapRef
  } from 'vue';
  const labelCol = {
    style: {
      width: '120px'
    }
  };
  const supplyFormState: UnwrapRef < supplyFormState > = reactive({

  });
  const demandFormState: UnwrapRef < demandFormState > = reactive({

  });

</script>

<style lang="less" scoped>
  .left-box,
  .right-box {
    margin-top: 20px;

    .w30 {
      width: 30%;

      .ant-form-item {
        width: 40%;
      }
    }
  }

</style>
